package com.wejoy.video.middle.station.data.enums.dict;

public enum EnumUeAreaType {
    SZ_DDT("SZ-DDT", "大湾区"),
    DDZX_YUNNAN("ddzx_yunnan", "云南调度中心"),
    DDZX_ZHEJIANG("ddzx_zhejian", "浙江调度中心"),
    DDZX_HUBEI("ddzx_hubei", "湖北调度中心"),
    DDZX_HUNAN("ddzx_hunan", "湖南调度中心"),
    DDZX_JIANGSU("ddzx_jiansu", "江苏调度中心"),
    DDZX_YICHUN("ddzx_yichun", "宜春调度中心"),
    DDXZ_GUANGXI("ddxz_guangxi", "广西调度中心"),
    DDZX_JIUJIANG("ddzx_jiujiang", "九江调度中心"),
    DDZX_GANZHOU("ddzx_ganzhou", "赣州调度中心"),
    TZGS_DDZX_ANHUI("tzgs_ddzx_anhui", "投资公司调度中心-安徽"),
    TZGS_DDZX_BAODIN("tzgs_ddzx_baodin", "投资公司调度中心-保定"),
    //guangDong-DDT 广东省
    TZGS_DDZX_GUANGDONG("guangDong-DDT", "广东省"),
    TZGS_DDZX_JIANGXI("tzgs_ddzx_jiangxi", "投资公司调度中心-江西"),
    TZGS_DDZX_SICHUAN("tzgs_ddzx_sichuan", "投资公司调度中心-四川")


    ;
    private String text;
    private String code;

    EnumUeAreaType(String code, String name) {
        this.code = code;
        this.text = name;
    }

    /**
     * 通过code获得该枚举类型
     * @param text
     * @return
     */
    public static EnumUeAreaType getByTxt(String text) {
        EnumUeAreaType[] values = EnumUeAreaType.values();
        for(EnumUeAreaType type : values) {
            if(type.text.equals(text)) {
                return type;
            }
        }
        return null;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }
}
